<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <face />
  </div>
</template>

<script>
import steambarcodereader from "@/components/steambarcodereader.vue";
import welcomeAudioTip from "@/components/welcomeAudioTip.vue";
import Qrcode from '@/components/Qrcode.vue'


export default {
  name: "HelloWorld",
  components: {
    steambarcodereader,
    welcomeAudioTip,
    Qrcode,
  },
  props: {
    msg: String,
  },
  data() {
    return {
      myform: {
        username: "test",
        userpass: "123",
      },
      QrcodeText:"www.baidu.com", //定义二维码图型所属的数据内容
    };
  },
  methods: {
    //测试方法
    async doPost() {
      console.log("你发送的数据：" + JSON.stringify(this.myform));
      let res = await this.$http.post("testlogin", this.myform);
      console.log(res);
    },
    getCode(txt){
        console.log(txt);
    }
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983 ;
}
</style>
